from flask import Blueprint, render_template, request
from flask_login import login_required, current_user
from sqlalchemy import desc

from applications.common import curd
from applications.common.curd import model_to_dicts, enable_status, disable_status
from applications.common.helper import ModelFilter
from applications.common.utils.http import table_api, fail_api, success_api
from applications.common.utils.rights import authorize
from applications.common.utils.validate import xss_escape
from applications.extensions import db
from applications.models import Role
from applications.models import User, AdminLog
from applications.schemas import UserOutSchema

admin_scene_show = Blueprint('admiSceneshow', __name__, url_prefix='/admin/scene_show')


# 用户管理
@admin_scene_show.get('')
@authorize("scene_show:main", log=True)
def main():
    return render_template('admin/atkdef_scene/total_show.html')